﻿using System;
using eBay.Service.Core.Sdk;

namespace OigSync.Infrastructure.Api
{
    public abstract class ApiBase
    {
        protected ApiContext Context { get; set; }

        public IApiSetting Setting { get; set; }

        public IApiResult Result { get; set; }

        public ApiBase(String token) 
        {
            this.Context = new ApiContext();
            this.Context.ApiCredential.eBayToken = token;
            //this.Context.Site = 
        }

        public abstract void Execute();
    }
}
